home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_6.lha
/
7_6
/
7_6_ins.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
330b
|
17 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ insert an entry at the beginning of the list
oid dlist::insert(ent a)
if (last)
last->next->insert(new dlink(a));
else
{
last = new dlink(a);
last->next = last->prev = last;
}